#include<iostream>  
#include<cstdio>  
#include<cstring>  
using namespace std;  
int i,n,a[20];  
void work(int m)  
  
{  
       int i;  
       if(m==0)  
       {  
            cout<<"0";  
             return;  
       }  
       if(m==1)  
       {  
            cout<<"2(0)";  
             return;  
       }  
       if(m==2)  
       {  
            cout<<"2";  
            return;  
       }  
       for(i=15;i>=0;--i)  
         if (m-a[i]>=0)  
           break;  
       if(a[i]==2)  
              cout<<"2";  
       else  
       {  
              cout<<"2(";  
              work(i);  
              cout<<")";  
       }  
       m-=a[i];  
       while(m>0)  
       {  
              for(i=15;i>=0;--i)  
                if (m-a[i]>=0)  
                  break;  
              if(a[i]==2)  
					cout<<"+2";  
              else  
              {  
                     cout<<"+2(";  
                     work(i);  
                     cout<<")";  
              }  
              m-=a[i];  
       }  
}  
int main()   
{
	cin>>n;  
	a[0]=1;  
	a[1]=2;  
	for(i=2;i<=15;++i)
		a[i]=a[i-1]*2;  
	work(n);  
	return 0;  
  
}  
